import * as DOMPurify from "dompurify";
DOMPurify.setConfig({
  FORBID_TAGS: ["script", "select", "option", "textarea", "form", "button"],
  FORBID_ATTR: [],
  ADD_TAGS: ["foreignObject"]
});
DOMPurify.addHook("afterSanitizeAttributes", function(node) {
  if (node.tagName === "CODE") {
    node.classList.add("md_hljs");
  }
});
export default DOMPurify;
